<%--
    Document   : login1
    Created on : Aug 30, 2010, 10:05:57 AM
    Author     : TUNGTRUM
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>admin</title>
        <link rel="stylesheet" type="text/css" href= "admin/stylelog.css" />
    </head>
    <body>
        <div id="layer01_holder">
            <div id="left"></div>
            <div id="center"></div>
            <div id="right"></div>
        </div>

        <div id="layer02_holder">
            <div id="left"></div>
            <div id="center"></div>
            <div id="right"></div>
        </div>

        <div id="layer03_holder">
            <div id="left"></div>
            <div id="center">

                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td>${mess}</td>
                    </tr>
                    <tr>

                        <td><form id="form1" name="form1" method="post" action="login.do" onsubmit="return checkform();">
                                <label>UserName:
                                    <input name="usename" type="text" id="usename" />
                                </label><br/><br/>
                                <label>Password:
                                    <input type="password" name="pass" id="pass" />
                                </label>
                                <label>
                                    <input type="submit" name="action" id="button" value="login" />
                                </label>
                            </form>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="right"></div>
        </div>

        <div id="layer04_holder">
            <div id="left"></div>
            <div id="center">
                If you forgot your password, please contact administrator or <a href="#">click here</a></div>
            <div id="right"></div>
        </div>

        <div id="layer05_holder">
            <div align="left">Copyright © 2010, TLT Design</div>
        </div>
    </body>
</html>

<script>
    function checkform(){
        if(document.form1.usename.value ==""){
            alert("nhap user");
            document.form1.usename.focus();
            return false;
        }else if(document.form1.pass.value ==""){
            alert("nhap pass");
            document.form1.pass.focus();
            return false;
        }else{
            return true;
        }
    }
</script>